build_path:=../../build/
CC:=g++
AR:=ar
target:=gameServer.a
objects:=Configuration.o DllManager.o Logic.o main.o Manager.o Pool.o Server.o Session.o SessionManager.o
$(build_path)$(target): $(objects)
	$(AR) cr $@ $^
Configuration.o: Configuration.cpp include/Configuration.h
	$(CC) -c Configuration.cpp
DllManager.o: DllManager.cpp include/DllManager.h include/Manager.h include/Singleton.h include/Configuration.h
	$(CC) -c DllManager.cpp
Logic.o: Logic.cpp include/Session.h include/DllManager.h include/../../../../Common/PackageUtil.h include/Configuration.h include/Singleton.h
	$(CC) -c Logic.cpp
main.o: main.cpp include/Configuration.h include/Singleton.h include/Server.h include/Pool.h include/Session.h include/DllManager.h include/../../../../Common/PackageUtil.h include/SessionManager.h include/Manager.h
	$(CC) -c main.cpp
Manager.o: Manager.cpp include/Manager.h include/Singleton.h include/Configuration.h
	$(CC) -c Manager.cpp
Pool.o: Pool.cpp include/Pool.h include/Singleton.h include/Manager.h
	$(CC) -c Pool.cpp
Server.o: Server.cpp include/Server.h include/Pool.h include/Session.h include/DllManager.h include/../../../../Common/PackageUtil.h include/Singleton.h include/Configuration.h
	$(CC) -c Server.cpp
Session.o: Session.cpp include/Session.h include/DllManager.h include/../../../../Common/PackageUtil.h include/Singleton.h include/SessionManager.h include/Session.h
	$(CC) -c Session.cpp
SessionManager.o: SessionManager.cpp include/SessionManager.h include/Session.h include/DllManager.h include/../../../../Common/PackageUtil.h
	$(CC) -c SessionManager.cpp
.PHONY: clean
clean:
	rm -f $(build_path)$(target) *.o
